﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace CRM_SMS_MARKETING.PL.System_Management
{
    public partial class frmAdministration : DevExpress.XtraEditors.XtraForm
    {
        public frmAdministration()
        {
            InitializeComponent();
        }
        Form checkexist(string fName)
        {
            foreach (Form f in this.MdiChildren)
            {
                if (f.Name == fName)
                    return f;
            }
            return null;
        }

        private void btnModem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            //Form f = checkexist("frmModems");
            //if (f != null)
            //    f.Activate();
            //else
            //{
            //    frmModems frm = new frmModems();
            //    frm.Name = "frmModems";
            //    frm.MdiParent = this;
            //}

        }


        private void btnUser_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            //Form f = checkexist("frmUser");
            //if (f != null)
            //    f.Activate();
            //else
            //{
            //    frmUser frm = new frmUser();
            //    frm.Name = "frmUser";
            //    frm.MdiParent = this;
            //}
        }
    }
}